<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <!--{include file="comm_header.tpl"}-->
</head>
<body ontouchstart style="background: #ebebeb;">
<div class="container" id="container">
    <!--{if $costInfo}-->
    <div class="page" style="margin-bottom: 45px">
        <!--details-->
        <div class="weui-form-preview" style="margin-top: 0">
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">报价单号：</span><!--{$costInfo->costCode}--></label>
                    <span class="weui-form-preview__value"><span class="text-gray">业务员：</span><!--{$costInfo->trueName}--></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><!--{$costInfo->costName}--></label>
                    <span class="weui-form-preview__value"><a class="weui-btn  contact-btn" href="tel:<!--{$costInfo->userMobile}-->">联系业务员</a></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span><!--{$costInfo->categoryName}--></label>
                    <span class="weui-form-preview__value"></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">报价时间：</span><!--{$costInfo->createTime}--></label>
                    <span class="weui-form-preview__value"><span class="text-gray">报价有效期：</span><!--{$costInfo->validDate}--></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">施工面积：</span><!--{$costInfo->area}-->平米</label>
                    <span class="weui-form-preview__value"><span class="text-gray">物流方式：</span><!--{$costInfo->sendTypeName}--></span>
                </div>
                <div class="weui-form-preview__item weui_describe">
                    <label class="weui-form-preview__label"><span class="text-gray">备注说明：</span></label>
                    <p><!--{$costInfo->remark}--></p>
                </div>
            </div>
        </div>

        <!--list-->
        <!--{if isset($costInfo->dtl)}-->
        <!--{foreach from=$costInfo->dtl item=costDtl}-->
        <div class="weui-form-preview weui-details-list">
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-blue">产品系列：<!--{$costDtl->bigCategoryName}--></span></label>
                    <span class="weui-form-preview__value"><span class="text-gray">单价：</span><span class="text-red"><!--{$costDtl->price}--> 元/KG</span></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">产品名称：</span><!--{$costDtl->goodsName}--></label>
                    <span class="weui-form-preview__value"></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">包装规格：</span><!--{$costDtl->specName}-->/<!--{$costDtl->packageName}--></label>
                    <span class="weui-form-preview__value"><span class="text-gray">涂布率：</span><!--{$costDtl->useRate}-->  KG/平方米</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">备&emsp;&emsp;注：</span><!--{$costDtl->remark}--></label>
                    <span class="weui-form-preview__value"></span>
                </div>
            </div>
        </div>
        <!--{/foreach}-->
        <!--{/if}-->
        <!--list end-->
    </div>
    <div class="weui-footer weui-footer_fixed-bottom">
        <a href="tel:0573-86773577" class="weui-btn weui-btn_primary">联系客服</a>
        <!--{if $user['type'] != 0}-->
        <a href="javascript:void(0);" class="weui-btn weui-btn_warn weui-btn_disabled">确认报价</a>
        <!--{else}-->
            <!--{if $costInfo->costStatus == 1}-->
            <a href="javascript:costConfirm();" class="weui-btn weui-btn_warn">确认报价</a>
            <!--{else}-->
            <a href="javascript:void(0);" class="weui-btn weui-btn_warn weui-btn_disabled">确认报价</a>
            <!--{/if}-->
        <!--{/if}-->
    </div>
    <!--{/if}-->
</div>

<!--{include file="comm_js.tpl"}-->

<script type="text/javascript">
    $(function(){
        $('.weui-navbar__item').on('click', function () {
            var _this=$(this).index()
            $(this).addClass('weui-bar__item_on').siblings('.weui-bar__item_on').removeClass('weui-bar__item_on');
            $(".weui-tab__content").eq(_this).show().siblings('.weui-tab__content').hide()
        });
    });

    <!--{if $costInfo}-->
    function costConfirm() {
        E.ajax_post({
            url : "/wap/orderDtl.html?ajaxFlg=4&code=<!--{$costInfo->costCode}-->",
            call : function (o) {
                E.wxAlert(o.message, function () { location.reload(); } , 1)
            }
        });
    }
    <!--{/if}-->

</script>
</body>
</html>
